package org.bot.plugin.web.util;

public enum SelectorType {
    ID,
    CLASS,
    XPATH,
    CSS,
    NAME;

    public static SelectorType getType(String type) {
        switch (type) {
            case "id":
                return ID;
            case "class":
                return CLASS;
            case "xpath":
                return XPATH;
            case "css":
                return CSS;
            case "name":
                return NAME;
        }
        return null;
    }
}
